using System;
using System.Configuration;
using ThoughtWorks.CruiseControl.Core;
using Trumpi.CruiseControl.Core.Publishers;

namespace Trumpi.CruiseControl.Trumpi.CruiseControlConsole
{
	class HelloWorld
	{
		static void Main(string[] args)
		{
			IntegrationResult result = new IntegrationResult();
			result.WorkingDirectory = ".";

			SubversionPublisher publisher = new SubversionPublisher();
			publisher.CommitUrl = ConfigurationSettings.AppSettings["publishUrl"];
			publisher.SourceDirectory = ConfigurationSettings.AppSettings["sourceDir"];
			publisher.Run(result);
		}
	}
}

